package com.azt.novel.resource.service;


import com.azt.novel.common.resp.RestResp;
import com.azt.novel.resource.dto.resp.ImgVerifyCodeRespDto;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface IResourceService {

    RestResp<String> uploadImage(MultipartFile file);
    /**
     * 获取图片验证码
     *
     * @return Base64编码的图片
     * @throws IOException 验证码图片生成失败
     */
    RestResp<ImgVerifyCodeRespDto> getImgVerifyCode() throws IOException;
}
